1 : <?php
2 : /*--------------------------------------------------------------------------+
3 : This file is part of eStudy.
4 : admin/index.php
5 : - Modulgruppe: Veranstaltung
6 : - Beschreibung: Klasse zum steuern der Assistens-Sicht beim Anlegen eines Kurses
7 : - Version: 1.0, 18/01/09
8 : - Autor(en): Markus Wötzel <markus.woetzel@mni.fh-giessen.de>
9 : +---------------------------------------------------------------------------+
10 : This program is free software; you can redistribute it and/or
11 : modify it under the terms of the GNU General Public License
12 : as published by the Free Software Foundation; either version 2
13 : of the License, or any later version.
14 : +---------------------------------------------------------------------------+
15 : This program is distributed in the hope that it will be useful,
16 : but WITHOUT ANY WARRANTY; without even the implied warranty of
17 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 : GNU General Public License for more details.
19 : You should have received a copy of the GNU General Public License
20 : along with this program; if not, write to the Free Software
21 : Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 : +--------------------------------------------------------------------------*/
23 :
24 : /** relativer Pfad zum Root des Portals*/
25 : /***/
26 : // define("PATH_TO_ROOT", "../");
27 : /**
28 : * kann nicht noch mal gesetzt werden
29 : * da es bereits im Controller gesetzt wird.
30 : */
31 :
32 : /** SettingsDialog*/
33 1 : require_once("class.SettingsDialog.inc.php");
34 : /**ModulgruppenConfiguration*/
35 1 : require_once("class.ModulegroupConfiguration.inc.php");
36 :
37 1 : class AssistController {
38 :
39 : static public $assist = 0;
40 :
41 : static public function getAssist() {
42 0 : return AssistController::$assist;
43 : }
44 :
45 : static public function setAssist($value) {
46 0 : $assist = $value;
47 0 : }
48 :
49 : static public function callSettings($settings) {
50 0 : new SettingsDialog($settings, true);
51 0 : }
52 :
53 : static public function callModulSettings($courseId) {
54 0 : $config = new ModulegroupConfiguration($courseId);
55 0 : $config->setModuleGroupsDefault();
56 0 : $config->echoAssistDesc();
57 0 : $config->echoModulegroupsForm();
58 0 : AssistController::$assist = 0;
59 0 : }
60 : }
|